﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<SDT.Admin.ViewModels.EditCommentViewModels>" %>
<%@ Import Namespace="SDT.Lib.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Quản lý bình luận
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Header" runat="server">
   Chi tiết bình luận
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="Message" runat="server">
    <%=ViewData["MessageInfo"]!=null? "<p class='perror'>"+Html.Encode(ViewData["MessageInfo"])+"</p>":string.Empty%>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Toolbar" runat="server">
        <%= Html.Toolbar("Quay về", "/Comments", "back") %>
	    <%= Html.Toolbar("Sửa", string.Format("/Comments/Edit/{0}", Model.TheComment.ID), "edit")%>
        <%= Html.Toolbar("Xóa", string.Format("/Comments/Delete/{0}", Model.TheComment.ID), "delete")%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%if (ViewData["MessageInfo"] == null)
      { %>
    <%= Html.ValidationSummary(true)%>
    	<fieldset>
		<legend>Chi tiết</legend>
	<table class="admintable" width="100%" align="center">
		<tbody>
			<tr>
				<td class="key">
					Tiêu đề:
				</td>
				<td>
					<%=Html.Encode(Model.TheComment.Title) %>
				</td>
			</tr>
			<tr>
				<td class="key">
					Nội dung:
				</td>
				<td>
					<%= Model.TheComment.CommentContent%>
				</td>
			</tr>
			<tr>
				<td class="key">
					Người gửi
				</td>
				<td>
					<%=Html.Encode(Model.TheComment.AddBy) %>
				</td>
			</tr>
			<tr>
				<td class="key">
					Email
				</td>
				<td>
					<%=Html.Encode(Model.TheComment.AddByEmail) %>
				</td>
			</tr>
			<tr>
				<td class="key">
					Ngày gửi:
				</td>
				<td>
					<%=Html.Encode(Model.TheComment.CommentDate) %>
				</td>
			</tr>
			<tr>`
				<td class="key">
					Trạng thái hiển thị:
				</td>
				<td>
					<%=Html.Encode(Model.TheComment.PublishYN.HasValue && Model.TheComment.PublishYN.Value==true?"Xuất bản":"Chưa xuất bản")%>
				</td>
			</tr>
		</tbody>
	</table>
	</fieldset>
    <%
  } %>
</asp:Content>
